package com.naiterui.common.jinshuju.exception;

import lombok.Getter;

/**
 * @author gaoliangliang
 * @date 2019/10/19 3:45 下午
 * @since 1.0.0
 */
@Getter
public class JinshujuException extends Exception {

    private int errorCode;
    private String errorMsg;

    /**
     *
     */
    public JinshujuException(JinshujuExceptionCodes errorCode) {
        super(errorCode.getExceptionMsg());
        this.errorCode = errorCode.getExceptionCode();
        this.errorMsg = errorCode.getExceptionMsg();
    }
}
